﻿<%@ Page Title="Menu" Language="C#" MasterPageFile="~/MainSite.master" AutoEventWireup="true" CodeFile="Menu.aspx.cs" Inherits="Menu" %>
<%@ MasterType VirtualPath="~/MainSite.master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MWSContentPlaceHolder1" Runat="Server">
    <div class="RedPageBody">

    <div style="float:right;">
        <asp:Button ID="CompleteOrderButton" runat="server" Text="Finish" 
            onclick="CompleteOrderButton_Click" />
    </div>

    <div style="text-align:center;">

    <p>Pizzas</p>

    <asp:GridView ID="PizzaGridView" runat="server" AutoGenerateColumns="False" 
            CellPadding="4" DataKeyNames="PID" DataSourceID="PizzaDataSource" 
            ForeColor="#333333" GridLines="None" AllowPaging="True" 
            AllowSorting="True" HorizontalAlign="Center" PageSize="5" 
            onselectedindexchanged="PizzaGridView_SelectedIndexChanged">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:CommandField ShowSelectButton="True" HeaderText="Add Item" />
            <asp:BoundField DataField="DESCRIP" HeaderText="ITEM" 
                SortExpression="DESCRIP" />
            <asp:BoundField DataField="PRICE" HeaderText="PRICE" SortExpression="PRICE" />
            <asp:ImageField DataImageUrlField="PIC" HeaderText="PICTURE" 
            NullImageUrl="Images/No-Image-Available.jpg" 
            ControlStyle-Height="100"  ControlStyle-Width="100"  >
           
            <ControlStyle Height="100px" Width="100px"></ControlStyle>
            </asp:ImageField>
           
        </Columns>
        <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
        <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
        <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
        <SortedAscendingCellStyle BackColor="#FDF5AC" />
        <SortedAscendingHeaderStyle BackColor="#4D0000" />
        <SortedDescendingCellStyle BackColor="#FCF6C0" />
        <SortedDescendingHeaderStyle BackColor="#820000" />
    </asp:GridView>

        <asp:SqlDataSource ID="PizzaDataSource" runat="server" 
            ConnectionString="<%$ ConnectionStrings:RSardinas_6118_ConnString %>" 
            SelectCommand="SELECT PID, DESCRIP, TYPE, PRICE, PIC, IS_CURRENT FROM PRODUCTS WHERE (TYPE = 1) OR (TYPE = 9) AND (IS_CURRENT = 'true')">
        </asp:SqlDataSource>

    </div>

   

    <div style="text-align:center;">
    <p>Sides and Drinks</p>

    <asp:GridView ID="SidesAndDrinksGridView" runat="server" 
            AutoGenerateColumns="False" CellPadding="4" DataKeyNames="PID" 
            DataSourceID="SidesAndDrinkDataSource" ForeColor="#333333" 
            GridLines="None" AllowPaging="True" AllowSorting="True" 
            HorizontalAlign="Center" PageSize="5" 
            onselectedindexchanged="SidesAndDrinksGridView_SelectedIndexChanged">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:CommandField ShowSelectButton="True" HeaderText="Add Item" />
            <asp:BoundField DataField="DESCRIP" HeaderText="ITEM" 
                SortExpression="DESCRIP" />
            <asp:BoundField DataField="PRICE" HeaderText="PRICE" SortExpression="PRICE" />
            <asp:ImageField DataImageUrlField="PIC" HeaderText="PICTURE" 
            NullImageUrl="Images/No-Image-Available.jpg" 
            ControlStyle-Height="100"  ControlStyle-Width="100"  />
            
        </Columns>
        <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
        <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
        <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
        <SortedAscendingCellStyle BackColor="#FDF5AC" />
        <SortedAscendingHeaderStyle BackColor="#4D0000" />
        <SortedDescendingCellStyle BackColor="#FCF6C0" />
        <SortedDescendingHeaderStyle BackColor="#820000" />
        </asp:GridView>

        <asp:SqlDataSource ID="SidesAndDrinkDataSource" runat="server" 
            ConnectionString="<%$ ConnectionStrings:RSardinas_6118_ConnString %>" 
            SelectCommand="SELECT PID, DESCRIP, TYPE, PRICE, PIC, IS_CURRENT FROM PRODUCTS WHERE (TYPE = 2) OR (TYPE = 3) OR (TYPE = 8) AND (IS_CURRENT = 'TRUE')">
        </asp:SqlDataSource>

    </div>

</div>
</asp:Content>

